package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwOperationRoleMenuMapper;
import com.ruoyi.system.domain.GwOperationRoleMenu;
import com.ruoyi.system.service.IGwOperationRoleMenuService;

/**
 * 运营角色菜单关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class GwOperationRoleMenuServiceImpl implements IGwOperationRoleMenuService 
{
    @Autowired
    private GwOperationRoleMenuMapper gwOperationRoleMenuMapper;

    /**
     * 查询运营角色菜单关联
     * 
     * @param operationRoleId 运营角色菜单关联主键
     * @return 运营角色菜单关联
     */
    @Override
    public GwOperationRoleMenu selectGwOperationRoleMenuByOperationRoleId(String operationRoleId)
    {
        return gwOperationRoleMenuMapper.selectGwOperationRoleMenuByOperationRoleId(operationRoleId);
    }

    /**
     * 查询运营角色菜单关联列表
     * 
     * @param gwOperationRoleMenu 运营角色菜单关联
     * @return 运营角色菜单关联
     */
    @Override
    public List<GwOperationRoleMenu> selectGwOperationRoleMenuList(GwOperationRoleMenu gwOperationRoleMenu)
    {
        return gwOperationRoleMenuMapper.selectGwOperationRoleMenuList(gwOperationRoleMenu);
    }

    /**
     * 新增运营角色菜单关联
     * 
     * @param gwOperationRoleMenu 运营角色菜单关联
     * @return 结果
     */
    @Override
    public int insertGwOperationRoleMenu(GwOperationRoleMenu gwOperationRoleMenu)
    {
        return gwOperationRoleMenuMapper.insertGwOperationRoleMenu(gwOperationRoleMenu);
    }

    /**
     * 修改运营角色菜单关联
     * 
     * @param gwOperationRoleMenu 运营角色菜单关联
     * @return 结果
     */
    @Override
    public int updateGwOperationRoleMenu(GwOperationRoleMenu gwOperationRoleMenu)
    {
        return gwOperationRoleMenuMapper.updateGwOperationRoleMenu(gwOperationRoleMenu);
    }

    /**
     * 批量删除运营角色菜单关联
     * 
     * @param operationRoleIds 需要删除的运营角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwOperationRoleMenuByOperationRoleIds(String[] operationRoleIds)
    {
        return gwOperationRoleMenuMapper.deleteGwOperationRoleMenuByOperationRoleIds(operationRoleIds);
    }

    /**
     * 删除运营角色菜单关联信息
     * 
     * @param operationRoleId 运营角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwOperationRoleMenuByOperationRoleId(String operationRoleId)
    {
        return gwOperationRoleMenuMapper.deleteGwOperationRoleMenuByOperationRoleId(operationRoleId);
    }
}
